package demo1;

/**
 * @Author 12629
 * @Description：
 */
public class Test {

    public static void func(Shape shape) {
        shape.draw();
    }

    public static void main(String[] args) {
        //Shape shape = new Shape();
        Shape shape1 = new Rect();
        Shape shape2 = new Cycle();
        func(shape1);
        func(shape2);
    }
}
